package work1.work4;

import java.util.Scanner;

public class Rever {

    /**
     * @Author admin
     * @Date 2019/3/27 9:12
     */

        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            System.out.println("请输入一个字符串：");
            StringBuffer str = new StringBuffer(in.nextLine());
            str.reverse();
            System.out.print("反转后的字符串：" + str);
        }

}
